Show:

ia.ReportConfig Class

Module: ia

Used to load and parse a config.xml file.

Constructor

ia.ReportConfig

(
  • source
)

Parameters:

  • source String

    The url for the config.xml file.

Methods

getButton

(
  • id
)
ia.ButtonConfig

Returns the button that corresponds to the id.

Parameters:

  • id String

    The id.

Returns:

ia.ButtonConfig: The button.

getButtons

() ia.ButtonConfig[]

Returns the buttons.

Returns:

ia.ButtonConfig[]: An array of buttons.

getComponent

(
  • id
)
ia.ComponentConfig | ia.TableConfig | ia.ButtonConfig | ia.TextConfig | ia.ImageConfig

Returns the widget that corresponds to the id.

Parameters:

  • id String

    The id.

getComponent

(
  • id
)
ia.ComponentConfig

Returns the component that corresponds to the id.

Parameters:

  • id String

    The id.

Returns:

ia.ComponentConfig: The component.

getComponents

() ia.ComponentConfig[]

Returns the components.

Returns:

ia.ComponentConfig[]: An array of components.

getImage

(
  • id
)
ia.ImageConfig

Returns the image that corresponds to the id.

Parameters:

  • id String

    The id.

Returns:

ia.ImageConfig: The image.

getImages

() ia.ImageConfig[]

Returns the images.

Returns:

ia.ImageConfig[]: An array of images.

getMapPalette

() ia.PaletteConfig

Returns the palette.

Returns:

ia.PaletteConfig: The palette object.

getProperties

() Associative Array

Returns the widgets properties.

Returns:

Associative Array: properties[propertyId] = property.

getProperty

(
  • id
)
Number | String

Gets the value for the property with the given id.

Parameters:

  • id String

    The property id.

Returns:

Number | String: The property value.

getText

(
  • id
)
ia.TextConfig

Returns the text that corresponds to the id.

Parameters:

  • id String

    The id.

Returns:

ia.TextConfig: The text.

getTexts

() ia.TextConfig[]

Returns the text.

Returns:

ia.TextConfig[]: An array of text.

getWidgets

() ia.ComponentConfig | ia.TableConfig | ia.ButtonConfig | ia.TextConfig | ia.ImageConfig[]

Returns all widgets in the config ie a concatenation of all components, tables, buttons, text and images.

loadSource

(
  • url
  • callbackFunction
)

Loads in a source file containing the configuration xml.

Parameters:

  • url String

    The url to the data.

  • callbackFunction Function

    The call back function.

parseXML

(
  • xml
  • callbackFunction
)

Parses in an XML object containing the configuration xml.

Parameters:

  • xml XML

    The xml data.

  • callbackFunction Function

    The call back function.

setProperty

(
  • id
  • value
  • castValue
)

Sets the value for the property with the given id.

Parameters:

  • id String

    The property id.

  • value Number | String

    The property value.

  • castValue Boolean

    Indicates the value is a string and needs to be cast to the correct data type.

Properties

properties

Associative Array

The widgets properties, properties[propertyId] = property.

xml

XML

The raw xml data describing the object.